package no.sachmuld.methodcombination.impl.validate;

import java.lang.reflect.Method;

/**
 *
 */
public class TargetMethodNotFinal extends MethodCombinationValidationError {
    private Method method;
    public TargetMethodNotFinal(Class targetClass, Method method) {
        super(targetClass);
        this.method = method;
    }

    @Override
    public String toString() {
        return "Method " + method.getName() + " in class " + getTargetClass().getName() + " is not final";
    }
}
